package com.douqu.game.rmi;

import com.douqu.game.core.util.LogUtils;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * @Author: Bean
 * @Description:
 * @Date: 2018-08-08 13:46
 */
public class RMIImpl extends UnicastRemoteObject implements IRMI {


    protected RMIImpl() throws RemoteException {
    }

    @Override
    public String test() throws RemoteException {

        LogUtils.info("来调用我了,先休息3秒");

        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        LogUtils.info("休息完成，返回数据");
        return "OK";
    }
}
